package com.chenju.javastatic.adapter;

import org.objectweb.asm.Opcodes;

public class MethodInsnVisitorAdapter {
    public int api;
    public String owner;
    public String name;
    public String descriptor;
    public boolean isInterface;
    public String invokeType;

    public MethodInsnVisitorAdapter(String owner, String name, String descriptor, boolean isInterface, String invokeType) {
        this(Opcodes.ASM9, owner, name, descriptor, isInterface, invokeType);
        if (this.getClass() != MethodInsnVisitorAdapter.class) {
            throw new IllegalStateException();
        }
    }

    public MethodInsnVisitorAdapter(int api, String owner, String name, String descriptor, boolean isInterface, String invokeType){
        this.api = api;
        this.owner = owner;
        this.name = name;
        this.descriptor = descriptor;
        this.isInterface = isInterface;
        this.invokeType = invokeType;
    }
}
